<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>初识Vue</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <!-- 
        之前学的指令
        v-model @ : v-if v-else=if v-else v-show v-for
        v-model.number .lazy .trim 修饰符
        @click.prevent .stop .once .self .passive .capture 事件修饰符
        @keyup 键盘公开事件 @keyup.enter修饰符esc delete up down left right 
     -->
    <div id="root">
        <p v-text="msg"></p>
    </div>
    
</body>
<script type="text/javascript">
    Vue.config.productionTip = false //以阻止 vue 在启动时生成生产提示。
    //创建Vue
    const vm = new Vue({
        el:'#root', 
        data:{
            msg:'你好'
        }
    })

</script>
</html>